<template>
  <div class="oneLineImgCode2">
    <div class="flex flex-title">
      <template v-if="variablesObject.icon && variablesObject.icon[0]">
        <img :src="variablesObject.icon[0].url" alt class="icon" />
      </template>
      <p class="title">{{variablesObject.title}}</p>
    </div>
    <div class="t_c">
      <p class="desc">{{variablesObject.desc}}</p>
    </div>

    <div class="flex">
      <router-link
        to=""
        v-for="(item,index) in variablesObject.imgUlrList.slice(0,1)"
        :key="index"
        class="liLeft"
      >
        <img :src="item.imgUrl" alt class="image" />
      </router-link>
      <div class="liRight">
        <div v-for="(item,index) in variablesObject.imgUlrList.slice(1,3)" :key="index">
          <router-link to="">
            <img :src="item.imgUrl" alt class="image" />
          </router-link>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    variablesObject: {
      type: Object,
      default: () => {
        return {};
      }
    }
  },
  data() {
    return {};
  },
  methods: {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
.oneLineImgCode2 {
  padding: 0.1rem;
  background: #fff;
  margin-bottom: 0.1rem;
  .flex {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .flex-title {
    padding-top: 0.1rem;
    justify-content: center;
  }
  .icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }
  p {
    margin: 0;
  }
  .title {
    font-size: 16px;
    color: #333;
  }
  .t_c {
    text-align: center;
  }
  .desc {
    color: #999;
    margin: 5px 0;
    text-align: center;
    display: inline-block;
    position: relative;
    padding: 10px;
    &::before,
    &::after {
      content: " ";
      width: 100%;
      height: 3px;
      position: absolute;
      left: 0;
    }
    &::before {
      top: 0;
      border-bottom: 2px solid #333;
    }
    &::after {
      top: 4px;
      border-bottom: 2px solid #999;
    }
  }
  a {
    height: 140px;
    display: block;
  }
  .image {
    width: 100%;
    height: 100%;
  }
  .liLeft,
  .liRight {
    width: 50%;
    a {
      height: 70px;
    }
  }
}
</style>